#!/bin/bash

whoami
ip a
PKG_NAME='device-extra.jar'
echo "stop the program and remove the package"
ssh root@10.12.22.132 "
       cd /home/program/commandcenterplus/device-extra
       bash device-extra-deploy.sh &&
       exit"
echo "transfer package to server start"
scp device-extra-service/target/${PKG_NAME} root@10.12.22.132:/home/program/commandcenterplus/device-extra
echo "transfer package to server end"
